package com.zxmr.client;

import com.alibaba.fastjson.JSON;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.asyn.AsynRequest;

public class NormalAsynRequest extends AsynRequest{


	@Override
	public void callback(Response response) {
		ResponsePayload payload = response.getPayload();
		System.out.println("[x] received response : "+JSON.toJSONString(payload));
	}

	@Override
	public void requestTimeOut() {
		
	}

	public boolean send()
	{
		this.setTimeout(2000);
		return this.send("response", "hello");
	}
	
}
